﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Ecopsy.DataTier;

namespace AgencyEntityLib.BaseEntity
{
    public class Face_F : Face 
    {
       private string _FirstName=string .Empty ;
       public string FirstName { get { return _FirstName; } set { _FirstName = value; } }

       private string _SecondName = string.Empty;
       public string SecondName { get { return _SecondName; } set { _SecondName = value; } }

       private string _LastName = string.Empty;
       public  string LastName {get{return _LastName ;} set{_LastName = value ;}}
               
       [EntityNonSerialized]
       public string FullName
       {
           get
           {
               return _FirstName + " " + _SecondName + " " + _LastName;
           }
       }

       [EntityNonSerialized]
       public string ShortName
       {
           get
           {
               return _FirstName + " " + (_SecondName.Length >0? SecondName.Substring(0,1):"")   + " " + (_LastName.Length >0? _LastName .Substring(0,1):"");
           }
       }


      
    }
}
